package com.ruoyi.ihome.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Getter;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.List;

/**
 * 收藏表对象 ih_collect
 * 
 * @author wyt
 * @date 2024-08-16
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class IhCollect extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 收藏表id */
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    @Getter
    private Long userId;

    /** 收藏类型(0房间,1帖子） */
    @Excel(name = "收藏类型(0房间,1帖子）")
    private Long collectType;

    /** 房间id或帖子id */
    @Excel(name = "房间id或帖子id")
    private Long houseIdOrTopicId;

//    一对多房间
    private List<IhHome> ihHouseList;


}
